const path = require('path');

const rootPath = path.resolve(process.cwd(), 'node_modules');

/** 解析绝对路径
 * @param {Object} dir 
 */
function resolvePath(dir) {
  return path.resolve(rootPath, dir);
}

const uniPagesJSON = require(resolvePath('@dcloudio/uni-cli-shared/lib/pages.js')).getPagesJson();
module.exports = {
  tabBar: uniPagesJSON.tabBar
}